var assert = require('assert');
var should = require('should');
var util = require('util');
var zlib = require('zlib');
var _ = require('lodash');
var skillAttr = require('../../../app/libs/war/skillAttr');
var config = require('../../config');
var dataApi = require('../../../app/libs/dataApi');

suite('测试skillAttr', function () {
    suite('getAttr', function () {
        test('获取技能数据正确', function () {
            dataApi.hero_skill_type.each(function (skill_type_conf, key) {
                _.each(skill_type_conf, function (value, skill_type) {
                    assert.equal(skillAttr.getAttr(value.skill_id, 1) != null, true);;
                });
            });
        });
    });
});
